package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.DataModelType;
import com.etone.smartAudit.vo.dataModelType.DataModelTypeTreeVO;
import com.etone.smartAudit.vo.dataModelType.DataModelTypeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: sovy
 * @date: 2020/11/5
 * @description:
 */

@Mapper
public interface DataModelTypeMapper extends BaseMapper<DataModelType> {
    /**
     * 获取树形结构
     *
     * @param pid
     * @return
     */
    List<DataModelTypeTreeVO> findListTree(@Param("pid") Integer pid);

    /**
     * 列表
     *
     * @param pid
     * @return
     */
    List<DataModelTypeVO> findList(@Param("pid") Integer pid);
}